/**
 * 根据 blob 下载文件
 *
 * @param blob_array
 * @param fileName 文件名
 */
export const downloadFile = (blob_array: any, fileName: any) => {
    let blob = new Blob([blob_array], {type: "application/force-download"});
    // window.location.href = URL.createObjectURL(blob);
    let labelA = document.createElement('a');
    labelA.href = window.URL.createObjectURL(blob);
    labelA.download = fileName;
    labelA.click();
};
